package com.topvision.service.impl.zwan;

import com.topvision.annotation.DataSource;
import com.topvision.db.DataSourceConstants;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.topvision.mapper.zwan.SysorderdeviceinfoMapper;
import com.topvision.model.zwan.Sysorderdeviceinfo;
import com.topvision.service.zwan.SysorderdeviceinfoService;

@Service("sysorderdeviceinfoService")
public class SysorderdeviceinfoServiceImpl implements SysorderdeviceinfoService {
	@Autowired
	private SysorderdeviceinfoMapper sysorderdeviceinfoMapper;
	
	@Override
	@DataSource(DataSourceConstants.ORACLE_PORTAL_SLAVE)
	public Sysorderdeviceinfo queryObject(BigDecimal deviceseqno){
		return sysorderdeviceinfoMapper.queryObject(deviceseqno);
	}
	
	@Override
	@DataSource(DataSourceConstants.ORACLE_PORTAL_SLAVE)
	public List<Sysorderdeviceinfo> queryList(Map<String, Object> map){
		return sysorderdeviceinfoMapper.queryList(map);
	}
	
	@Override
	@DataSource(DataSourceConstants.ORACLE_PORTAL_SLAVE)
	public int queryTotal(Map<String, Object> map){
		return sysorderdeviceinfoMapper.queryTotal(map);
	}
	
	@Override
	@DataSource(DataSourceConstants.ORACLE_PORTAL_SLAVE)
	public void save(Sysorderdeviceinfo sysorderdeviceinfo){
		sysorderdeviceinfoMapper.save(sysorderdeviceinfo);
	}
	
	@Override
	@DataSource(DataSourceConstants.ORACLE_PORTAL_SLAVE)
	public void update(Sysorderdeviceinfo sysorderdeviceinfo){
		sysorderdeviceinfoMapper.update(sysorderdeviceinfo);
	}
	
	@Override
	@DataSource(DataSourceConstants.ORACLE_PORTAL_SLAVE)
	public void delete(BigDecimal deviceseqno){
		sysorderdeviceinfoMapper.delete(deviceseqno);
	}
	
	@Override
	@DataSource(DataSourceConstants.ORACLE_PORTAL_SLAVE)
	public void deleteBatch(BigDecimal[] deviceseqnos){
		sysorderdeviceinfoMapper.deleteBatch(deviceseqnos);
	}

	@Override
	@DataSource(DataSourceConstants.ORACLE_PORTAL_SLAVE)
	public int batchInsert(Map<String, Object> params) {
		return sysorderdeviceinfoMapper.batchInsert(params);
	}

	@Override
	@DataSource(DataSourceConstants.ORACLE_PORTAL_SLAVE)
	public List<Sysorderdeviceinfo> findByParams(Map<String, Object> params) {
		return sysorderdeviceinfoMapper.findByParams(params);
	}

	@Override
	@DataSource(DataSourceConstants.ORACLE_PORTAL_SLAVE)
	public List<Sysorderdeviceinfo> notBindList() {
		return sysorderdeviceinfoMapper.notBindList();
	}

	@Override
	@DataSource(DataSourceConstants.ORACLE_PORTAL_SLAVE)
	public List<Sysorderdeviceinfo> queryByParam(Map<String, Object> params) {
		return sysorderdeviceinfoMapper.queryByParam(params);
	}


}
